package com.gwnet.shop.domain;

import com.gwnet.common.mybatis.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品规格组合价格对象 goods_spec_group
 * 
 * @author 张万鹏
 * @date 2024-07-21
 */
public class SpecGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 商品id */
    private Long goodsId;

    /** 商品规格ids */
    private String specIds;

    /** 商品规格描述 */
    private String specText;

    /** 打包费用 */
    private Double packageMoney;

    /** 图片 */
    private String imgUrl;

    /** 规格组合价格 */
    private Double price;

    /** 备注 */
    private String remark;

    private ShopGoods shopGoods;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setSpecIds(String specIds) 
    {
        this.specIds = specIds;
    }

    public String getSpecIds() 
    {
        return specIds;
    }
    public void setSpecText(String specText) 
    {
        this.specText = specText;
    }

    public String getSpecText() 
    {
        return specText;
    }

    public Double getPackageMoney() {
        return packageMoney;
    }

    public void setPackageMoney(Double packageMoney) {
        this.packageMoney = packageMoney;
    }

    public void setImgUrl(String imgUrl)
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public ShopGoods getShopGoods() {
        return shopGoods;
    }

    public void setShopGoods(ShopGoods shopGoods) {
        this.shopGoods = shopGoods;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("specIds", getSpecIds())
            .append("specText", getSpecText())
            .append("imgUrl", getImgUrl())
            .append("price", getPrice())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
